package com.muyu.danmo.service.impl;


import com.muyu.danmo.domain.DanmoMountImages;
import com.muyu.danmo.mapper.DanmoMountImagesMapper;
import com.muyu.danmo.service.IDanmoMountImagesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 装裱图片Service业务层处理
 *
 * @author yangle
 * @date 2024-10-14
 */
@Service
public class DanmoMountImagesServiceImpl implements IDanmoMountImagesService
{
    @Autowired
    private DanmoMountImagesMapper danmoMountImagesMapper;

    /**
     * 查询装裱图片
     *
     * @param id 装裱图片主键
     * @return 装裱图片
     */
    @Override
    public DanmoMountImages selectDanmoMountImagesById(Long id)
    {
        return danmoMountImagesMapper.selectDanmoMountImagesById(id);
    }

    /**
     * 查询装裱图片列表
     *
     * @param danmoMountImages 装裱图片
     * @return 装裱图片
     */
    @Override
    public List<DanmoMountImages> selectDanmoMountImagesList(DanmoMountImages danmoMountImages)
    {
        return danmoMountImagesMapper.selectDanmoMountImagesList(danmoMountImages);
    }

    /**
     * 新增装裱图片
     *
     * @param danmoMountImages 装裱图片
     * @return 结果
     */
    @Override
    public int insertDanmoMountImages(DanmoMountImages danmoMountImages)
    {
        return danmoMountImagesMapper.insertDanmoMountImages(danmoMountImages);
    }

    /**
     * 修改装裱图片
     *
     * @param danmoMountImages 装裱图片
     * @return 结果
     */
    @Override
    public int updateDanmoMountImages(DanmoMountImages danmoMountImages)
    {
        return danmoMountImagesMapper.updateDanmoMountImages(danmoMountImages);
    }

    /**
     * 批量删除装裱图片
     *
     * @param ids 需要删除的装裱图片主键
     * @return 结果
     */
    @Override
    public int deleteDanmoMountImagesByIds(Long[] ids)
    {
        return danmoMountImagesMapper.deleteDanmoMountImagesByIds(ids);
    }

    /**
     * 删除装裱图片信息
     *
     * @param id 装裱图片主键
     * @return 结果
     */
    @Override
    public int deleteDanmoMountImagesById(Long id)
    {
        return danmoMountImagesMapper.deleteDanmoMountImagesById(id);
    }
}
